System for communicating with a non-volatile memory storage device

ABSTRACT

A storage device is provided. The storage device includes a command parser module for interpreting a command from a host system in a platform independent format; and for extracting information regarding an operation from the command, wherein the command parser module interfaces with the host system.

CROSS REFERENCE TO RELATED APPLICATION

This patent application is related to the U.S. patent application, Ser. No. ______, Docket No. SDD820.000US, entitled “METHOD FOR COMMUNICATING WITH A NON-VOLATILE MEMORY STORAGE DEVICE” filed on even date herewith, the disclosure of which is incorporated herein by reference in its entirety.

TECHNICAL FIELD

The present description relates to non-volatile memory storage devices, and more particularly, to communication with non-volatile memory storage devices.

RELATED ART

Non-volatile memory storage devices are commonly used to store information. These devices are used with cellular phones, digital cameras, desktop computers, laptop computers and other similar systems (jointly and interchangeably referred to herein as a “host system” or “host”)

Different host system platforms use a software layer (may also be referred to as software development kit (SDK) layer) to communicate with a non-volatile memory storage device via a non-volatile memory storage device driver. Additional SDK layers may be used by host systems to access additional features of a non-volatile memory storage device that are not offered otherwise. Porting SDKs to different host system providers is a burden and it is desirable to reduce that burden.

SUMMARY

In an embodiment, a storage device is provided. The storage device includes a command parser module for interpreting a command from a host system in a platform independent format; and for extracting information regarding an operation from the command, wherein the command parser module interfaces with the host system.

In another embodiment, a storage device is provided. The storage device includes a command parser module for receiving a command from a host system in a platform independent format; for interpreting the command; extracting information regarding an operation from the command; and for sending a response to the host system, after the operation is performed by the storage device.

In yet another embodiment, a storage device is provided. The storage device includes a command parser module for receiving a command from a host system in a platform independent format; for extracting information regarding an operation from the command, after firmware code for the storage device detects if the command includes an operational directive; and for sending a response to the host system, after the operation is performed by the storage device.

This brief summary has been provided so that the nature of the invention may be understood quickly. A more complete understanding of the invention can be obtained by reference to the following detailed description of the preferred embodiments thereof in connection with the attached drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

The foregoing features and other features will now be described with reference to the drawings of various embodiments. In the drawings, the same components have the same reference numerals. The illustrated embodiments are intended to illustrate, but not to limit the description. The drawings include the following Figures:

FIG. 1A shows a block diagram of a host system operationally coupled to a non-volatile memory device;

FIG. 1B shows an example of a block diagram of a memory controller for a non-volatile memory device;

FIG. 1C shows a block diagram of a typical software architecture used to communicate with a non-volatile memory device;

FIG. 1D shows a block diagram of a system with a command parser module, according to one embodiment;

FIG. 2 shows a process flow diagram for communicating with a non-volatile memory device, according to one embodiment; and

FIG. 3 shows an example of the process and system for communicating with a non-volatile memory device, according to one embodiment.

DETAILED DESCRIPTION

To facilitate an understanding of the various embodiments, the general architecture and operation of a computing system and a non-volatile memory storage device will first be described. The specific architecture and operation will then be described with reference to the general architecture.

FIG. 1A shows a block diagram of a typical host system 100 that includes a central processing unit (“CPU”) (or microprocessor or processor) 101 connected to a system bus 105. Random access main memory (“RAM”) 103 is coupled to system bus 105 and provides CPU 101 with access to memory storage. When executing program instructions, CPU 101 stores the process steps in RAM 103 and executes the stored process steps out of RAM 103.

Host system 100 connects to a computer network (not shown) via network interface 104. One such network is the Internet that allows host system 100 to download applications, code, documents and others electronic information.

Read only memory (“ROM”) 102 is provided to store invariant instruction sequences such as start-up instruction sequences or basic Input/output operating system (BIOS) sequences.

Input/Output (“I/O”) devices 106, for example, a keyboard, a keypad, a pointing device (“mouse”), a monitor, a modem and the like are also provided.

Host system 100 is coupled to a non-volatile memory storage device 111 that includes a controller module 108 (may also be referred to as “memory controller” or “controller”) and solid-state memory modules 109-110 (shown as Memory Module #1 and Memory Module #N). Controller module 108 interfaces with host processor 101 via a bus interface 107 or directly via system bus 105 or any another peripheral bus (not shown).

In one embodiment, non-volatile memory storage device 111 may be a flash memory device (or card). There are currently many different flash memory cards that are commercially available, examples being the CompactFlash (CF), the MultiMediaCard (MMC), Secure Digital (SD), miniSD, Memory Stick, SmartMedia and TransFlash cards. Although each of these cards has a unique mechanical and/or electrical interface (or any other type of interface, including a wireless interface) according to its standardized specifications (for example, the Universal Serial Bus (USB) specification based interface, incorporated herein by reference in its entirety), the flash memory included in each is very similar. These cards are all available from SanDisk Corporation, assignee of the present application.

SanDisk also provides a line of flash drives under its Cruzer trademark, which are hand held memory systems in small packages that have a Universal Serial Bus (USB) plug for connecting with a host system by plugging into the host's USB receptacle. Each of these memory cards and flash drives include controllers that interface with the host system and control operation of the flash memory within them.

Host systems (for example, 100) that use such memory cards and flash drives are many and varied. They include personal computers (PCs), laptop and other portable computers, cellular telephones, personal digital assistants (PDAs), digital still cameras, digital movie cameras and portable audio players. The host typically includes a built-in receptacle for one or more types of memory cards or flash drives but some require adapters into which a memory card is plugged.

FIG. 1B shows a block diagram of the internal architecture of controller module 108. Controller module 108 includes a microcontroller 114 that interfaces with various other components via interface logic 116. Memory 115 stores firmware and software instructions that are used by microcontroller 114 to control the operation of non-volatile memory storage device 111. Memory 115 may be volatile re-programmable random access memory (“RAM”), a non-volatile memory that is not re-programmable (“ROM”), a one-time programmable memory or a re-programmable flash electrically-erasable and programmable read-only memory (“EEPROM”).

A host interface 113 interfaces with host system 100, while a memory interface 112 interfaces with memory modules 109-110.

FIG. 1C shows a top-level block diagram of a conventional operating system that uses a storage device driver 121 and SDK layer 118 to communicate with non-volatile memory storage device 111. A software application 117, executed by host system 100 sends commands for reading information stored in non-volatile memory storage device 111, writing information at non-volatile memory storage device 111, or for performing any other function. Micro-controller 114 executing firmware instructions 119 perform these operations.

Host system 100 may need SDK layer 118 to access non-volatile memory storage device 111. Different host system 100 may use different operating systems and hence different versions of SDK layer 118 are needed. This becomes burdensome for storage device providers and also may affect user experience of using non-volatile memory storage device 111.

In one embodiment, a simplified architecture is provided so that either SDK layer 118 is not needed or a partial SDK layer 120 (i.e. a thin version of SDK layer 118) (referred to as “thin SDK layer 118”) is used to access non-volatile memory storage device 111A. FIG. 1D shows a block diagram of a top-level architecture that uses a platform independent format to communicate with non-volatile memory storage device 111A. Non-volatile memory storage device 111A includes all components of non-volatile memory storage device 111 and also includes a command parser module 122 for interfacing with host system 100, as described below.

Command parser module 122 parses commands that are sent by host system 100 via storage driver 121 and thin SDK layer 120. The commands are in a generic format so that individual SDK layer 118 is not needed for different host systems.

In one embodiment, command parser module 122 may be an XML parser. XML stands for Extensible Markup language, a standard markup language, defined by the W3C consortium, incorporated herein by reference in its entirety. XML is a text-based markup language that is becoming popular. As with HTML (hyper-text markup language), one identifies data using tags (for example, identifiers enclosed in angle brackets: < . . . >). Collectively, the tags are known as “markup”. But unlike HTML, XML tags identify data, rather than specifying how to display it. Where an HTML tag may state “display this data in bold font” (<b> . . . </b>), an XML tag acts like a field name in a program. XML tags may be customized, based on different application type. In this embodiment, command parser module 122 is capable of receiving and interpreting an XML tag (command) from host system 100.

XML tags for various file system commands, for example, read, write, delete, create a directory and other commands are defined between partial SDK layer 120 and command parser module 122. An XML tag sent by host system 100 may include instructions to perform more than one operation, for example, to create a directory, write data and read data. Command parser module 122 extracts information regarding the operation and notifies the proper component/module of non-volatile memory storage device 111A (for example, microcontroller 114) to perform the operation.

FIG. 2 shows a process flow diagram for communicating with non-volatile memory storage device 111A either without SDK layer 118 or using thin SDK layer 120. The process begins in step S200, when host system 100 sends a query command to non-volatile memory storage device 111A. In step S202, non-volatile memory storage device 111A sends information regarding features that are supported by non-volatile memory storage device 111A.

In step S204, host system 100 sends a command in a platform independent format. The term platform independent format means that the command format does not depend on host system 100 operating system/environment. Examples of platform independent format include XML and others.

In step S206, command parser module 122 parses the command (or tag) and extracts information regarding any operation that the host system 100 wants to be performed. A single tag may include information regarding multiple operations. Command parser module 122 notifies the module that needs to perform the operation.

In step S208, the operation is performed and command parser module 122 sends a response back to host system 100, if host system 100 wants a response back.

The following provides an example of using XML tags, according to one embodiment. In this example, a host system may send a command to create a directory. The text in italics below shows the XML tags that may be used to perform this operation. The tag “Path” includes the directory name; and the tag “RetStatus” stores the operation “return status”, if the host wants to know the status. The following shows the XML tags to create a directory:

<FileSystemOperation> <OpType>CreateDirectory</OpType> <Parameters> <Path>”0:\\MyDir\\MyMusic”</Path> </Parameters> <RetStatus></RetStatus> </FileSystemOperation>

FIG. 3 shows an example of using the process steps of FIG. 2. In this example, host system 100 is a cell phone. Host system 100 creates a XML tag (or packet/file for example, “write SNDK.XML”) for example, to create a directory. The XML tag is identified as a File System Operation. If non-volatile memory storage device 111A does not support the operation specified by the XML tag, then it can simply return a command stating “Interface_Not_Supported”.

Before the tag is written, firmware 119 determines if the XML tag has operational directives. This may be achieved by using a special identifier that firmware 119 can use to identify a file system operation.

Command parser module 122 intercepts the XML packet and notifies the appropriate module to perform the requested operation. After the operation is performed, command parser module 122 sends a status XML packet to host system 100.

If host system 100 wants to check the status of the operations, host system 100 can read the tag back, for example, as shown in FIG. 3, creating “0:\\myDir\\MyMusic” returns “SD_SUCCESS”.

In one embodiment, partial or no SDK layers are needed to communicate and access non-volatile memory storage device features.

It is noteworthy that although the foregoing embodiments have been illustrated using a non-volatile memory storage device, the foregoing embodiments may be implemented in any type of storage device, including hard disks, tape drives or any other storage device that uses a memory controller, state machine or any other type of hardware/software to interface with a host system.

While the present description is described above with respect to what is currently considered its preferred embodiments, it is to be understood that the description is not limited to that described above. To the contrary, the description is intended to cover various modifications and equivalent arrangements within the spirit and scope of the appended claims. 

1. A storage device, comprising: a command parser module for receiving a command from a host system in a platform independent format; for interpreting the command; for extracting information regarding an operation from the command; and for sending a response to the host system, after the operation is performed by the storage device.
 2. The storage device of claim 1, wherein information regarding a plurality of operations is embedded in the command.
 3. The storage device of claim 1, wherein the command parser module provides information regarding the operation to a module of the storage device.
 4. The storage device of claim 3, wherein the module is a micro-controller.
 5. The storage device of claim 1, wherein the command parser module is an XML parser.
 6. The storage device of claim 1, wherein the storage device is a non-volatile memory storage device.
 7. A storage device, comprising: a command parser module for receiving a command from a host system in a platform independent format; for extracting information regarding an operation from the command, after firmware code for the storage device detects if the command includes an operational directive; and for sending a response to the host system after the operation is performed by the storage device.
 8. The storage device of claim 7, wherein information regarding a plurality of operations is embedded in the command.
 9. The storage device of claim 7, wherein the command parser module provides information regarding the operation to a module of the storage device.
 10. The storage device of claim 9, wherein the module is a micro-controller.
 11. The storage device of claim 7, wherein the command parser module is an XML parser.
 12. The storage device of claim 7, wherein the storage device is a non-volatile memory storage device.
 13. The storage device of claim 7, wherein the command parser module interfaces with the host system via a partial software layer.
 14. A storage device, comprising: a command parser module for interpreting a command from a host system in a platform independent format; and for extracting information regarding an operation from the command, wherein the command parser module interfaces with the host system.
 15. The storage device of claim 14, wherein information regarding a plurality of operations is embedded in the command.
 16. The storage device of claim 14, wherein the command parser module provides information regarding the operation to a module of the storage device.
 17. The storage device of claim 16, wherein the module is a micro-controller.
 18. The storage device of claim 14, wherein the command parser module is an XML parser.
 19. The storage device of claim 14, wherein the storage device is a non-volatile memory storage device.
 20. The storage device of claim 14, wherein the command parser module interfaces with the host system via a partial software layer. 